extends "../yilishabai-3/yilishabai-3.gd"


var baseId = ""
var upText1 = "日不落余晖还将提高航空"
var upText2 = "皇家荣耀赋予的坚守翻倍"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("本回合所有被连接成员每秒提高10点双攻，上限220", "日不落余晖")

func _upS():
	._upS()
	for i in connChas:
		if i.isDeath:continue
		var buff = i.hasBuff("b_royalFleet2")
		if buff == null:
			i.addBuff(b_royalFleet2.new())
		elif buff.att.atk < 220:
			buff.att.atk += 10
			buff.att.mgiAtk += 10
			if upgraded == 1:
				buff.att.air += 10

class b_royalFleet2:
	extends "../../../../azurlane_ctrl/AzurBuff.gd"
	func _init():
		attInit()
		id = "b_royalFleet2"	
		att.atk = 15
		att.mgiAtk = 15
		buffName = "日不落余晖"
		dispel = 2

func upgrade():
	.upgrade()
	if upgraded == 2:
		p2 = 10